﻿using Asp.Versioning;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;

namespace Himp.TaskScheduling.V1
{
    [Area(TaskSchedulingRemoteServiceConsts.ModuleName)]
    [RemoteService(Name = TaskSchedulingRemoteServiceConsts.RemoteServiceName)]
    [Route("api/taskScheduling/sampleObtainTask")]
    [ApiVersion("1.0")]
    [ApiController]
    [ControllerName("sampleObtainTask")]
    public class SampleObtainTaskController : TaskSchedulingController
    {
        private ISampleObtainTaskService _sampleObtainTaskService;

        public SampleObtainTaskController(ISampleObtainTaskService sampleObtainTaskService)
        {
            _sampleObtainTaskService = sampleObtainTaskService;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [HttpPost]
        public async Task PostAuditAsync([FromBody] SampleObtainTaskCreateDto input)
        {
            await _sampleObtainTaskService.PostAsync(input);
        }
    }
}
